package com.google.code.p.restrpc.http;

import java.net.URI;

/**
 * @author dz
 */
public interface HttpTemplate {
    
    /**
     * @param url
     * @param method
     * @param requestCallback
     * @param responseCallback
     * @param errorHandler
     * @return
     */
    public Object execute(URI url,
                          HttpMethod method,
                          HttpRequestCallback requestCallback,
                          HttpResponseCallback responseCallback,
                          ResponseErrorHandler errorHandler);
    
}
